package com.medical.app.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.medical.app.entity.Patient;

import java.util.List;

public interface PatientMapper extends BaseMapper<Patient> {
    default List<Patient> selectByWeichatId(Integer weichatId) {
        QueryWrapper<Patient> qw = new QueryWrapper<>();
        qw.lambda().eq(Patient::getWeichatId, weichatId);
        return this.selectList(qw);
    }
}